package com.situ.order.client;

import com.situ.order.util.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

//String url = "http://userservice/user/" + order.getUserId();
//JSONResult jsonResult = restTemplate.getForObject(url, JSONResult.class);

@FeignClient("userservice")
public interface UserClient {

    @GetMapping("/user/{id}")
    public JSONResult selectById(@PathVariable("id") Long id);

}
